package cn.wen.yinxiu.member.server.protocol.msg;

import cn.wen.yinxiu.member.server.protocol.Command;
import cn.wen.yinxiu.member.server.protocol.Packet;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @ClassName: MsgGroupRequest
 * @Author: 小飞
 * @Date: 2023/5/28 14:41
 * @Description: 群组消息请求
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MsgGroupRequest extends Packet {

    /**
     * 对话框ID
     */
    private Long talkId;
    /**
     * 群员ID
     */
    private Long userId;
    /**
     * 群员账号
     */
    private String account;
    /**
     * 传输消息内容
     */
    private String msgText;
    /**
     * 消息类型；0文字消息、1固定表情
     */
    private Integer msgType;
    /**
     * 消息时间
     */
    private Date msgTime;

    @Override
    public Byte getCommand() {
        return Command.MsgGroupRequest;
    }

}
